import { mergeConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
import baseConfig from './vite.config.base'

export default mergeConfig(
	{
		mode: 'development',
		server: {
			open: true,
			fs: {
				strict: true
			},
			proxy: {
				'/dev-api': {
					target: 'http://localhost:8080',
					changeOrigin: true,
					rewrite: (p) => p.replace(/^\/dev-api/, '')
				}
			}
		},
		plugins: [
		]
	},
	baseConfig
)
